package one_class.one_homework;

/**
 * @author 北巷_东坡
 * @date 2022/9/14 20:12
 * @computer 10741
 */
public class Pillar {
    Geo bottom;
    double height;
    Pillar(){

    }
    Pillar(Geo bottom,double height){
        this.bottom=bottom;
        this.height=height;
    }
    public double getVolume(){
        return bottom.getArea() * height;
    }
}
